问题:Javascript函数只需要很少的参数即可使用:functionkick(person,reason,amount){//kickthe*person*withthe*amount*,basedonthe*reason*}因为有nowaytodofunctionoverloadinginJSlikehowyoudoinJava,如果需要设计方便以后改进(加参数),可以这样写:/*FunctionParameterspattern*/functionkick(){//kickthepersonasin*arguments[0]*,withtheamountasin*argumen
我目前有一个运行大约200次的函数。函数如下所示:functionGetB(av,bol){varbxes=[["11","12","13","21","22","23","31","32","33"],["14","15","16","24","25","26","34","35","36"],["17","18","19","27","28","29","37","38","39"],["41","42","43","51","52","53","61","62","63"],["44","45","46","54","55","56","64","65","66"],["47",